package com.uam.db.model.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

/**
 * @author uam
 * @create 2023/12/5 15:33
 * @email uam@uam.com
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("SECTOR_STAT")
@ApiModel(value = "扇区统计")
public class SectorStat {
    @TableId(value = "ID")
    @ApiModelProperty("扇区ID")
    private String id;

    @TableField(value = "NAME")
    @ApiModelProperty("扇区名称")
    private String name;

    @TableField(value = "NUM")
    @ApiModelProperty("飞行器数量")
    private String num;

    @TableField(value = "AIRCRAFT_NAMES")
    @ApiModelProperty("飞行器名称列表，JSON数组格式，样例如下\n" +
            "[\n" +
            "    \"飞行器1\",\n" +
            "    \"飞行器2\",\n" +
            "    \"飞行器3\"\n" +
            "]")
    private String aircraftNames;

    @TableField(value = "CAPACITY")
    @ApiModelProperty("扇区容量")
    private Integer capacity;

    @TableField(value = "TIME")
    @ApiModelProperty("统计时间")
    private LocalDateTime time;

}
